package cn.itzqw.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book implements Serializable {
    private Integer bookId;

    private String bookName;

    private Integer bookCounts;

    private String detail;

    public Book(String bookName, Integer bookCounts, String detail) {
        this.bookName = bookName;
        this.bookCounts = bookCounts;
        this.detail = detail;
    }

    public Book(Integer bookId, String bookName) {
        this.bookId = bookId;
        this.bookName = bookName;
    }

    public Book(Integer bookId, Integer bookCounts, String detail) {
        this.bookId = bookId;
        this.bookCounts = bookCounts;
        this.detail = detail;
    }
}
